{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="">
				<a href="{:url('member/ct_list')}">运营中心管理</a>
			</li>
			<li class="layui-this">编辑运营中心</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<form class="layui-form form-container" action="{:url('member/ptupdate')}" method="post">
					<div class="layui-form-item">
						<label class="layui-form-label">运营中心昵称</label>
						<div class="layui-input-block">
							<input type="text" name="nick_name" value="{$member.nick_name}" required lay-verify="required" placeholder="请输入会员昵称" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">账号(手机号)</label>
						<div class="layui-input-block">
							<input type="text" name="mobile" value="{$member.mobile}" readonly placeholder="请输入账号(手机号)" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">登录密码</label>
						<div class="layui-input-block">
							<input type="hidden" name="old_pwd" value="{$member.password}">
							<input type="password" name="password" placeholder="不填写则不更改" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">余额</label>
						<div class="layui-input-block">
							<input type="text" name="money" value="{$member.money}" placeholder="请输入余额" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">真实姓名</label>
						<div class="layui-input-block">
							<input type="text" name="real_name" value="{$member.real_name}" placeholder="请输入真实姓名" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">身份证号</label>
						<div class="layui-input-block">
							<input type="text" name="idcard" value="{$member.idcard}" placeholder="请输入身份证号" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">性别</label>
						<div class="layui-input-block">
							<input type="radio" name="sex" value="1" title="男" {if condition="$member.sex==1" } checked="checked" {/if}>
							<input type="radio" name="sex" value="2" title="女" {if condition="$member.sex==2" } checked="checked" {/if}>
							<input type="radio" name="sex" value="0" title="保密" {if condition="$member.sex==0" } checked="checked" {/if}>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-block">
							<input type="radio" name="status" value="1" title="已激活" {if condition="$member.status==1" } checked="checked" {/if}>
							<input type="radio" name="status" value="0" title="未激活" {if condition="$member.status==0" } checked="checked" {/if}>
							<input type="radio" name="status" value="2" title="已禁用" {if condition="$member.status==2" } checked="checked" {/if}>
						</div>
					</div>
					<input type="hidden" name="is_city" value="1"/>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input type="hidden" name="id" value="{$member.id}">
							<button class="layui-btn" lay-submit lay-filter="*">更新</button>
							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<script>
	// 定义全局JS变量
	var GV = {
		current_controller: "{$controller}/ct_list"
	};
</script>
{/block}